<?php

namespace app\common\validate\goods;
use app\common\model\product\ShopProductTypeModel;
use think\Validate;
/**
 * 商品管理验证器
 */
class GoodsValidate extends Validate
{
    // 验证规则
    protected $rule = [
        'itemid' => 'require',
        'order_on' => 'require',
    ];
    // 错误信息
    protected $message = [
        'itemid.require' => '请选择商品',
        'order_on.require' => '请输入订单号',
    ];
    // 验证场景
    protected $scene = [
        'info'=>  ['itemid'],
        'submitOrder'=>  ['order_on'],
    ];

}
